package com.bjsxt.homework1;

public class LetterThread extends Thread {

    private Printer printer;

    public LetterThread(Printer printer) {
        this.printer = printer;
    }
    @Override
    public void run() {

        for (char c = 'A'; c <= 'Z'; c++) {
            //System.out.print(c);
            printer.printLetter(c);
        }
    }
}

